package com.demo.entity;

import lombok.Data;

import java.util.Date;

/**
 * Author:  Hardy
 * Date:    2018/7/18 20:05
 * Description:
 **/
@Data
public abstract class BaseEntity {

    protected Long id;

    protected long createTime;

    protected long updateTime;

    public BaseEntity() {
        createTime = System.currentTimeMillis() / 1000;
        updateTime = createTime;
    }
}
